/*
*    Phantom v2.0 GUI Automation Software
*    Copyright (C) 2009  John C. Van Arsdall (john@phantomtest.com)
*
*    This program is free software; you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation; either version 2 of the License, or
*    (at your option) any later version.
*
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License along
*    with this program; if not, write to the Free Software Foundation, Inc.,
*    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
#pragma once
#include "SSI_ScriptAPI.h"
#include "jni.h"


class CDataPTDOutput :
  public CData
{

// Required
private:
  static SSI_INT64 sType;
 	virtual SSI_BOOL CopyData(CData* Other);
	virtual CData* MakeData(void);

public:
  CDataPTDOutput(void);
  ~CDataPTDOutput(void);
	virtual SSI_BOOL DeleteData(CData* In);
	virtual SSI_BOOL DataFromString(const String& sData);
	virtual String GetString();
  virtual SSI_INT64 SizeOf();
	virtual SSI_INT64 Register(SSI_INT64 NewType);
	virtual void UnRegister();
 	virtual CStatus InitData(void);
	virtual void SSI_FunctionProcessor(SSI_FunctionAPI& theAPI);

  static SSI_INT64 GetRegisteredType(void);

// Not required overrides
public:
  CData* operator_equal(CData* InData, OpInfoT* Info);

// Not required
public:
  static jmethodID getOutputID;
  static jmethodID getChildCountID;
  static jmethodID getChildID;
  static jmethodID getErrorCountID;
  static jmethodID getWarningCountID;
  static jmethodID getNameID;
  static jmethodID getParentID;
  static jmethodID hasParentID;
  static jmethodID saveAsTextID;
  static jmethodID saveAsHTMLID;
  static jmethodID getRemoteMachineID;
  static jmethodID haltExecutionID;

  jobject my_obj;

};
